from src.utrls import SignalUtil


async def run(notice_data: dict):
    """
    私聊消息撤回
    :param notice_data:
    :return:
    """
    user_id = notice_data["user_id"]  # 好友qq
    message_id = notice_data["message_id"]  # 撤回的消息id
    print(f"检测到私聊消息撤回:用户【{user_id}】，消息id:【{message_id}】")
    res = await SignalUtil.get_msg(message_id)
    if res.get("status", "failed") == "failed":
        print("获取私聊消息撤回信息失败！")
        return
    print(res)
    print(notice_data)
    print("获取私聊撤回消息结束" + "=" * 15)
